package com.cogent.business.domain;

import java.io.Serializable;

@SuppressWarnings("unchecked")
public class HeadUserDomain implements Serializable,Comparable {

	private static final long serialVersionUID = 1L;
	private String id;
	private String showname;
	private int priority = 999999;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getShowname() {
		return showname;
	}
	public void setShowname(String showname) {
		this.showname = showname;
	}
	public int getPriority() {
		return priority;
	}
	public void setPriority(int priority) {
		this.priority = priority;
	}
	public int compareTo(Object obj) {
		HeadUserDomain domain = (HeadUserDomain)obj;
		int value = 0;
		if(this.priority > domain.getPriority())
			value = 1;
		else if(this.priority < domain.getPriority())
			value = -1;
		return value;
	}
}
